#ifndef QDATABASELISTVIEW_H
#define QDATABASELISTVIEW_H

#include <QTreeWidget>

class QDataBaseListView : public QTreeWidget
{
    Q_OBJECT
public:
    explicit QDataBaseListView(QWidget *parent = 0);
    void    load(const QStringList &list);

    void    clear();
protected:
    void    drawRow(QPainter *painter, const QStyleOptionViewItem &options, const QModelIndex &index) const;
signals:
    void select(const QString &name);
public slots:
    void    item_double_clicked(QTreeWidgetItem* item);
protected:
    QList<QTreeWidgetItem*> m_selects;
};

#endif // QDATABASELISTVIEW_H
